package com.inf;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.BeanUtils;

public interface Converter<S> {

    default void convert(S s){
        try {
			BeanUtils.copyProperties(s, this);
		} catch (IllegalAccessException | InvocationTargetException e) {
			e.printStackTrace();
		}
    }
}
